package org.tong.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

//@Component
public class RabbitmqReceiver {

    @RabbitListener(queues = {RabbitmqConf.msgQueueName})
    public void receiveMsg(String msg) {
        System.out.println("RabbitmqReceiver 收到消息：" + msg);
    }
}
